package com.iphanta.community.following.mapper;

import com.iphanta.community.following.entity.Like;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 2/22/22 5:51 PM
 */
@Mapper
public interface LikesMapper {

    Integer insert(Like like);

    Integer batchInsert(List<Like> likes);

    List<Like> selectLikesByDynamicId(@Param("dynamicId") Long dynamicId);

    Integer unlike(String likedByUid, Long dynamicId);

}
